package Hxw3DEngine.core.Resource.animation
{
	import Hxw3DEngine.error.OverrideError;
	import Hxw3DEngine.core.Resource.IResourceAtom;
	import Hxw3DEngine.error.ErrorType;
	
	//animationnode是保存一段动画数据的类的基类目前虽然没太多东西但方便以后扩展 
	public class AnimationClipBase implements IResourceAtom
	{
		
		//动画名
		public var name:String = "";
		public var totalFrame:int;

		
		public function AnimationClipBase(_name :String = "",_totalFrame:int = 0):void
		{
			name = _name;
			totalFrame = _totalFrame;
		}
		
		//获取某一帧的数据
		public function getAnimationData(frame:int):*{
			throw new OverrideError("AnimationNodeBase.getAnimationData need be overide");
		}
		public function dispose():void{
			
		}
		
		public function createFromVO(vo:Object):Boolean
		{
			throw new Error(ErrorType.OVERRIDE_ERROR);
		}		
	}
}